package com.lhyu.mall.service.impl;

import com.lhyu.mall.domain.*;
import com.lhyu.mall.dao.IndexMapper;
import com.lhyu.mall.service.IIndexService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IndexSeviceImpl implements IIndexService {
    @Autowired
    private IndexMapper indexMapper;
    @Override
    public List<IndexDomain> quaryContent() {
        return indexMapper.quaryContent();
    }

    @Override
    public List<IndexMallNavNewhotItemDomain> mallNavNewhotItem() {
        return indexMapper.mallNavNewhotItem();
    }
    @Override
    public List<IndexImgUrlsDomain> indexImgUrls() {
        return indexMapper.indexImgUrls();
    }
    @Override
    public List<IndexClassBigDomain> indexClassBig() {
        return indexMapper.indexClassBig();
    }

    @Override
    public List<ClassficationDomain> classfication() {
        return indexMapper.classfication();
    }

    @Override
    public List<CartDomain> queryCart() {
        return indexMapper.queryCart();
    }

    @Override
    public List<ComponentGoodsDomain> queryComponentGoods(String viewId) {
        return indexMapper.queryComponentGoods(viewId);
    }

    @Override
    public List<MessageDomain> queryMessage(String viewId) {
        return indexMapper.queryMessage(viewId);
    }

    @Override
    public void insertGoods(AddGoodsDomain addGoods) {
         indexMapper.insertGoods(addGoods);
    }

    @Override
    public List<AddGoodsDomain> isGoodInCart(String goodId) {
        return indexMapper.isGoodInCart(goodId);
    }

    @Override
    public void updateGoodInCart(AddGoodsDomain upGoods) {
        indexMapper.updateGoodInCart(upGoods);
    }
}
